# _*_ coding：UTF-8 _*_
# 开发人员：lgm
# 开发时间：2021/6/17 11:40
# 文件名称：base_driver.PY
# 开发工具：PyCharm
import time
from random import randint
from selenium import webdriver
from selenium.webdriver.common.by import By


class BaseDriver:

    def start_chrome(self):
        chrome_options = webdriver.ChromeOptions()
        chrome_options.add_argument('--headless')
        driver = webdriver.Chrome(options=chrome_options)
        #driver = webdriver.Chrome()
        driver.get("http://192.168.1.242:8034/m/Home")
        driver.maximize_window()

        return driver